package cn.gzsf.springboot10.mapper;

import cn.gzsf.springboot10.entity.Weibo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface WeiboMapper {

    @Insert("insert into weibo (content,url) values (#{content},#{url})")
    int insert(Weibo weibo);
    @Select("select * from weibo")
    List<Weibo> select();
}
